package com.xhdx.es.adau.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import com.xhdx.es.adau.entity.SysUser;

public interface SysUserDao extends ElasticsearchRepository<SysUser, String> {
	Page<SysUser> findByName(String name, Pageable pageable);
    Page<SysUser> findByLoginNo(String loginNo, Pageable pageable);
    //name模糊查询  and mobile
    List<SysUser> findByNameAndMobile(String name, String mobile);
    //name模糊查询  or mobile
    List<SysUser> findByNameOrMobile(String name, String mobile);
  //name模糊查询  and loginNo
    List<SysUser> findByNameAndLoginNo(String name, String loginNo);
}
